﻿using System.Collections;
using System.Windows.Forms;

namespace SQLDiagConfiguration
{
    /// <summary>
    /// This is the class that holds all parent objects defining
    /// Perfmon Counters as well as a collection of the objects
    /// that belong to each counter.
    /// It is used to display these object on the Perfmon Options TreeView
    /// </summary>
    class PerfmonObjectInfoObject
    {
        #region Properties

        private string objectName;

        public string ObjectName
        {
            get { return objectName; }
            set { objectName = value; }
        }

        private SortedList children;

        public SortedList Children
        {
            get { return children; }
            set { children = value; }
        }
        private TreeNode node;

        public TreeNode Node
        {
            get { return node; }
            set { node = value; }
        }


        #endregion Properties

        public PerfmonObjectInfoObject(string objectName)
        {
            ObjectName = objectName;
            Node = node;
            children = new SortedList();
        }
        public void Reset()
        {
            Children.Clear();
        }
    }
}
